#include <iostream>
#include "parser.h"
using namespace std;

int main()
{
   try {
        parser p("/home/lberserq/qt/translator/test.txt");
        p.analyze();
    }
    catch (lex &t) {
        cerr << t << endl;
    }

    catch (string &t) {
        cerr  <<"ERROR in LINE #" << t << endl;
    }

    catch (const char *t) {
        cerr <<"ERROR in LINE #" << t << endl;
    }//
    return 0;
}

